package com.ssm.service;

import com.github.pagehelper.PageInfo;
import com.ssm.entity.Book;

import java.util.List;

public interface BookService {
    List<Book> findAll();
    Book  findById(Integer id);
    boolean save(Book book);
    boolean update(Book book);
    boolean deleteById(Integer id);
    PageInfo<Book> findPaged(int pageNum, int pageSize);
    boolean batchDelete(List<Integer> ids);
}
